package hos.util.utils;

import android.animation.Animator;
import android.content.Context;
import android.view.animation.Animation;

import hos.core.AppCompat;
import hos.util.compat.AnimCompat;


/**
 * <p>Title: AnimUtils </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2021/6/18 9:26
 */
public class AnimUtils {

    private static Context getContext() {
        return AppCompat.getApp();
    }

    public static Animation loadAnimation(int nextAnim) {
        return AnimCompat.loadAnimation(getContext(), nextAnim);
    }

    public static Animator loadAnimator(int nextAnim) {
        return AnimCompat.loadAnimator(getContext(), nextAnim);
    }
}
